package com.qi.demo.Controller;


import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/user")
@RestController
public class UserController {

    @RequestMapping("r1")
    public boolean login(String name,String password){
        if("xiaobi".equals(name)&&"123456".equals(password)){
            return true;
        }else{
            return false;
        }
    }

}
